package edu.chinasoft.service;

import edu.chinasoft.domain.Function;
import edu.chinasoft.domain.User;
import edu.chinasoft.mapper.FunctionMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("functionService")
public
class FunctionServiceImp implements FunctionService {
    private Logger logger = LoggerFactory.getLogger(FunctionServiceImp.class);
    private FunctionMapper functionMapper;
    @Autowired
    @Qualifier(value = "functionMapper")
	@Override
	public List<Function> selectFunctionByUserID(User user) {
    	logger.info("FunctionServiceImp>>>selectFunctionByUserID start ……");
        List<Function> functionList = functionMapper.selectFunctionByUserID(user);
        logger.info("FunctionServiceImp>>>selectFunctionByUserID end ……");
		return functionList;
	}

	
}
